import { genGood, goodsMap } from './good';

export function getGoodsList(baseID = 0, tabIndex = 0) {
  const length = goodsMap[tabIndex]?.length || 0
  return new Array(length).fill(0).map((_, idx) => genGood(idx + baseID, 1, tabIndex))
}

export const goodsList = getGoodsList();
